package com.example.philosophy.lod;

//租客--- 租客 - 迪米特原则 - 最少知道原则
public class Tenant {

    //用户只需要知道中介公司即可
    private  MidderCompany midderCompany;  //依赖倒转

    public void setMidderCompany(MidderCompany midderCompany) {
        this.midderCompany = midderCompany;
    }

    public  void  getInfo(String info){
        this.midderCompany.showMessage(info);
    }
}
